# -*- coding:utf-8 -*-
__author__ = 'maruimin'
import re

str = ' 3 收藏'
a = re.match('.*?(\d+).*',str)
if a :
    b = int(a.group(1))

print(isinstance(b,int))